package com.zbkj.service.dao.traceability;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.traceability.TraceableItems;
import com.zbkj.common.response.traceability.TraceableItemWithBatchResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 可追溯项/二维码信息Dao接口
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: xiaolic
 * +----------------------------------------------------------------------
 */
public interface TraceableItemsDao extends BaseMapper<TraceableItems> {
    
    /**
     * 获取可追溯项信息与关联的批次信息
     * @param batchIds 批次ID列表
     * @return 带有批次信息的可追溯项列表
     */
    List<TraceableItemWithBatchResponse> getTraceableItemsWithBatchInfo(@Param("batchIds") List<Long> batchIds);
}
